package io.renren.modules.xk.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.renren.common.validator.group.AddGroup;
import io.renren.common.validator.group.UpdateGroup;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;
import java.util.Date;

/**
 * 选课任务表
 *
 * @author Mark sunlightcs@gmail.com
 */
@Data
@TableName("xk_task")
public class XkTaskEntity implements Serializable {
	private static final long serialVersionUID = 1L;
	@TableId
	private Long taskId;

	@TableField
	@NotBlank(message="任务名称不能为空", groups = {AddGroup.class, UpdateGroup.class})
	private String taskName;

	@TableField
//	@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
	private String taskStart;

	@TableField
//	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:s", timezone = "GMT+8")
	private String taskEnd;

	@TableField
	private String status;

	@TableField
	private String remark;
}
